/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.easoftware.code.beans;

/**
 *
 * @author eder.herrera
 */
public class PairOfObjects<T0, T1> {

    private T0 begining;
    private T1 end;

    public T0 getBegining() {
        return begining;
    }

    public void setBegining(T0 begining) {
        this.begining = begining;
    }

    public T1 getEnd() {
        return end;
    }

    public void setEnd(T1 end) {
        this.end = end;
    }

    public PairOfObjects<T0, T1> of(T0 begining, T1 end) {
        PairOfObjects nuevoRango = new PairOfObjects();

        nuevoRango.setBegining(begining);
        nuevoRango.setEnd(end);

        return nuevoRango;
    }
}
